Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add name and symbol to the asset_data table #54

Merged
2 commits merged into from
Jun 14, 2023
Merged

add name and symbol to the asset_data table #54

2 commits merged into from
Jun 14, 2023

Conversation

ghost
Copy link

@ghost ghost commented Jun 13, 2023

No description provided.

@NicolasPennie
Copy link

Build is failing

let raw_name = asset_data.raw_name.clone();
match String::from_utf8(raw_name) {
Ok(s) => Some(s),
Err(_) => Some(name.clone()),

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Under what scenarios would this happen? Do you have an example NFT?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It can fail if the utf8 check validation of the string fails. I don't have an example nft

@@ -151,6 +151,35 @@ pub fn safe_select<'a>(
.and_then(|v| v.pop())
}

#[cfg(feature = "fetch-raw-fields")]
async fn process_raw_fields(

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How will this function be used?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right now, I am using it for testing purpose. Its disabled due the compile/build time flag. However, based on a new optional field in the api, we will extract the raw fields or the sanitised fields

@ghost
Copy link
Author

ghost commented Jun 14, 2023

Build is failing

Test was failing. Fixed it.

@ghost ghost merged commit 7ddabe8 into helius Jun 14, 2023
@ghost ghost deleted the name-symbol-column branch June 14, 2023 04:41
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants